﻿/* 
 * Entity base class for all tables defined as part of Windows Azure Diagnostics
 * Copyright 2012, AltaModa Technologies
 */

using System;
using System.Data.Services.Common;

namespace AMT.Azure.Diagnostics
{
	[System.Runtime.Serialization.DataContract]
	[DataServiceKey("PartitionKey", "RowKey")]
	public class WADEntityBase
	{
		// Version designator for this class and its descendants
		public readonly float Version = 1.0F;

		[System.Runtime.Serialization.DataMember]
		public string PartitionKey { get; set; }

		[System.Runtime.Serialization.DataMember]
		public string RowKey { get; set; }

		[System.Runtime.Serialization.DataMember]
		public DateTime TimeStamp { get; set; }

		[System.Runtime.Serialization.DataMember]
		public Int64 EventTickCount { get; set; }

		[System.Runtime.Serialization.DataMember]
		public string DeploymentId { get; set; }

		[System.Runtime.Serialization.DataMember]
		public string Role { get; set; }

		[System.Runtime.Serialization.DataMember]
		public string RoleInstance { get; set; }

	}
}
